package com.portal.business.user;

import com.sys.business.custom.custominfo.dto.CustomInfoDTO;
import com.sys.business.custom.custominfo.webservice.CustomerDataService;
import com.sys.system.version.dto.VersionDTO;
import com.sys.system.version.webservice.VersionDataService;


	
/**
 * 
 * 项目名称: Portal     
 * 类名称:   UserServiceImpl     
 * 类描述:   TODO 
 * 创建人:   骆海东
 * 创建时间: Aug 26, 2011 3:54:48 PM     
 * 最后修改人:   骆海东
 * 最后修改时间: Aug 26, 2011 3:54:48 PM     
 * 最后修改备注:
 */
public class UserServiceImpl implements UserService {

	public CustomInfoDTO addCustomInfo(CustomInfoDTO customInfoDTO) {
		return CustomerDataService.createCustomerInfo(customInfoDTO);
	}

	public boolean updateStatus(Integer bespokeId, Integer registerId) {
		return false;
	}
	
	public String validateCompanyName(String name) {
		 boolean s=CustomerDataService.validateCompanyName(name);
		 if(s)return "1";
		 else return "0";
	}

	public String validateCompanyMail(String mailAddress) {
		 boolean s=CustomerDataService.validateCompanyMail(mailAddress);
		 if(s)return "1";
		 else return "0";
	}

	public String sendPasswordMail(String mailAddress) {
		 boolean s=CustomerDataService.sendPasswordMail(mailAddress);
		 if(s)return "1";
		 else return "0";
	}

	public VersionDTO findNewVersion() {
		return VersionDataService.findTopVersion();
	}

}

		